<?php if ($sf_user->hasFlash('notice') || $sf_user->hasFlash('error') || $sf_user->hasFlash('success')):?>
		<div id="flash" class="x12">
			<?php if ($sf_user->hasFlash('success')):?>
			<div class="success">
				<div class="close">x</div>
				<?php echo $sf_user->getFlash('success');?>
			</div>
			<?php endif;?>
			<?php if ($sf_user->hasFlash('error')):?>
			<div class="error">
				<div class="close">x</div>
				<?php echo $sf_user->getFlash('error');?>
			</div>
			<?php endif;?>
			<?php if ($sf_user->hasFlash('notice')):?>
			<div class="notice">
				<div class="close">x</div>
				<?php echo $sf_user->getFlash('notice');?>
			</div>
			<?php endif;?>
		</div>
		<script type="text/javascript">
			$(document).ready(function(){
				$("#flash div.close").click(function() {
					$(this).parent().slideUp(function() {
						if(!$("#flash div.notice").is(":visible") &&
						!$("#flash div.error").is(":visible") &&
						!$("#flash div.success").is(":visible")) {
							$("#flash").slideUp();
						}
					});
				});
			});
		</script>
<?php endif;?>